package dao;

import java.util.List;
import java.util.Map;

import model.Comment;

public interface CommentMapper {
	int insert(Comment record);

	List<Comment> selectAll();

	Map<String, Object> getCommentByUser(long userId);

	Integer getCommentAverageScoreByUser(long userId);

	// 根据orderId的获取评论详情
	List<Comment> getCommentByOrderId(String orderId);
	
}